<script setup lang="ts"></script>

<template>
    <div class="saying-container base-card">
        <div class="saying-content">
            <div class="saying-content-item">
                <div class="content">
                    <span>天上白玉京，十二楼五城。</span>
                    <span>仙人抚我顶，结发受长生。</span>
                </div>
                <ElTooltip
                    content="《经乱离后天恩流夜郎忆旧游书怀赠江夏韦太守良宰》-- 李白"
                >
                    <div class="source">
                        《经乱离后天恩流夜郎忆旧游书怀赠江夏韦太守良宰》-- 李白
                    </div>
                </ElTooltip>
            </div>
        </div>
    </div>
</template>

<style scoped lang="scss">
.saying-container {
    overflow: auto;

    .saying-content {
        width: 100%;
        display: flex;
        gap: 10px;

        .saying-content-item {
            max-width: 280px;
            border-radius: 6px;
            padding: 10px;
            box-shadow: 0px 1px 0px 0px #01040966;
            border: 1px solid var(--lineColor);
            background-color: var(--backColor);
            cursor: pointer;
            transform: translateY(0px);
            transition: color 0.3s, transform 0.3s;
            display: flex;
            flex-direction: column;
            gap: 10px;
            color: var(--cardItemText);
            font-size: 14px;

            &:hover {
                color: #fff;
                transform: translateY(-3px);
            }

            .content {
                width: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 5px;
            }

            .source {
                width: 100%;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }
    }
}
</style>
